package com.lin.manager.secure.model;

import com.lin.manager.log.service.Log;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.Date;

/**
 * @author linjiang
 * @date 2024/7/24
 * @fn
 */
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SecurityLog implements Log {
    protected Long id;
    protected Integer status;
    protected String descript;
    protected String userName;
    protected String ip;
    protected String method;
    protected Date createTime;

    @Override
    public Long getId() {
        return id;
    }

    @Override
    public Integer getStatus() {
        return status;
    }

    @Override
    public String getDescript() {
        return descript;
    }

    @Override
    public String getUserName() {
        return userName;
    }

    @Override
    public String getIp() {
        return ip;
    }

    @Override
    public String getMethod() {
        return method;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }
}
